package roleView 
{
	import flash.display.DisplayObjectContainer;
	/**
	 * ...
	 * @author Kylin206
	 */
	public class Armour extends UpdatableItem 
	{
		public function Armour() 
		{
			initOwner();
		}
		
		private function initOwner():void
		{
			var p:DisplayObjectContainer = this.parent;
			while (p)
			{
				
				if (p is RoleSkin)
				{
					owner = p as RoleSkin;
					owner.addEventListener(RoleSkin.UPDATA_ARMOUR, onUpdata);
					this.isUpdata = owner.isArmourUp;
					break;
				}
				p = p.parent;
			}
		}
		
	}

}